/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-06-07 15:22:18
 * @LastEditors: huangtianyang
 * @LastEditTime: 2023-06-09 17:26:56
 * @FilePath: \cxl-admin\src\apis\finance\reconciliation.ts
 */
import axios from '../../axios/index'

export interface paramsReconciliationInterface {
    companyId?: string //企业id
    current: number
    size: number
    queryDateStart?: string
    queryDateEnd?: string
}

/**
 * 对账汇总明细列表
 * @param params
 * @returns
 */
export const reconciliationDetailedList = (params: paramsReconciliationInterface) => {
    return axios({
        method: 'get',
        url: '/api/mall/company/dayStatistics/queryCheckAccountDetailPageList',
        params
    })
}

/**
 * 对账汇总列表
 * @param params
 * @returns
 */
export const reconciliationList = (params: paramsReconciliationInterface) => {
    return axios({
        method: 'get',
        url: '/api/mall/company/dayStatistics/queryCheckAccountPageList',
        params
    })
}

/**
 * 对账汇总数据累计
 * @param params
 * @returns
 */
export const reconciliationTotal = (params: paramsReconciliationInterface) => {
    return axios({
        method: 'get',
        url: '/api/mall/company/dayStatistics/queryCheckAccountSum',
        params
    })
}
